const obj = {
    name:"法外狂徒张三",
    age:18,
    gender:"male"
}

console.log(obj.name);
console.log(obj.age);

let {name,age} = obj
console.log(name);
console.log(age);